

# 求 1**2 + 2**2 + 3**2 + 4**2 + .... 10**2 的

def power(n):
    return n ** 2
result = sum(map(power, range(1, 11)))
print(result)
result = sum(map(lambda n: n ** 2, range(1, 11)))
print(result)

